import React from "react"
import "../style/index.scss"

export interface ScreenProps {
  bgColor?: string
  contentTop?: any
}

class Screen extends React.Component<ScreenProps, {}> {
  static defaultProps = { bgColor: "white" }
  render() {
    return (
      <div
        style={{ backgroundColor: this.props.bgColor, paddingTop: this.props.contentTop }}
        className="screen"
      >
        {this.props.children}
      </div>
    )
  }
}

export default Screen
